<include file="App/Home/View/Public/header.html"/>
<style>
.ui-btn-inline {
	width: 87%;
	margin-top: 2em;
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: none;
	box-shadow: none;
	background-color: #ffc703 !important;
	color: #333 !important;
	text-shadow: none !important;
}
.ui-shadow-inset {
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: 1px solid #ffc703 !important;
	box-shadow: none;
	background-color: rgba(0,0,0,0.5) !important;
}
</style>
<!-----------------------------主体内容 开始------------------------------>
<div data-role="main" class="ui-content"> 
  <!------登录表单 开始------->
  <form class="w80p btc_tcoin" method="post" action="" onsubmit="return false;">
    <div class="ui-field-contain padt_5 ">
      <label for="address" class="ui-hidden-accessible">{$Think.lang.__BITEBIDIZHI__}</label>
      <input type="text" name="address" id="address"   placeholder="{$bit_address}" />
    </div>
    <div class="ui-field-contain padt_5">
      <label for="password2" class="ui-hidden-accessible">{$Think.lang.__QINGSHURUJIAOYIMIMA__}</label>
      <input type="password" name="password2" id="password2" required placeholder="{$Think.lang.__QINGSHURUJIAOYIMIMA__}">
    </div>
    <input class="w100p" type="button" onclick="ajaxSubmit();" data-inline="true" value="{$Think.lang.__QUERENXIUGAI__}">
  </form>
  <!------登录表单 结束-------> 
</div>
<!-----------------------------主体内容 结束------------------------------> 
<script type="text/javascript">
	function ajaxSubmit(){
		var  bit_address = $('#address').val();
		var  tradepwd = $('#password2').val();
		if(bit_address == ""){
			layer.msg("{$Think.lang.__QINGTIANXIEBITEBIDIZHI__}");
			$("#address").focus();return false;
		}
		if(tradepwd == ""){
			layer.msg('请填写交易密码');
			$("#password2").focus();return false;
		}
		$.ajax({
			url:"{:U('Person/bit_address')}",
			type:'POST',
			data:{'bit_address':bit_address,'tradepwd':tradepwd},
			dataType:'JSON',
			success:function(data){
				layer.msg(data.info);
				if(data.status == 1){
					window.location.reload();
				}
			}
		})
	}
</script> 
<include file="App/Home/View/Public/footer.html"/>